<?php

declare(strict_types=1);

namespace Zms\AdminElementPlus\FormCreate\FormItem;

/**
 * element-plus input
 */
class Password extends Input
{
    protected string $_type = 'input';

    /**
     * 获取值类型
     * @return string
     */
    public function valueType(): string
    {
        return self::VALUE_TYPE_STRING;
    }

    protected function defaultProps(): array
    {
        return [
            'autocomplete' => 'new-password',
            'show-password' => true,
            'show-word-limit' => true,//是否显示字数信息
            'autofocus' => false,//是否自动获取焦点
        ];
    }
}